import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.ie.InternetExplorerDriver;
import org.openqa.selenium.interactions.Actions;


public class slider {

	/**
	 * @param args
	 * @throws Exception 
	 */
	public static void main(String[] args) throws Exception {
		WebDriver driver=new InternetExplorerDriver();
		driver.get("http://www.bairstoweves.co.uk/buy/search/london");
		//WebElement slider=driver.findElement(By.xpath("//*[@id='RadiusSlider']/a"));
		//Locatable hoverItem = (Locatable) driver.findElement(By.xpath("//*[@id='RadiusSlider']/a"));
		//Mouse mouse = ((HasInputDevices) driver).getMouse();
		//mouse.mouseMove(hoverItem.getCoordinates());	    
		
		WebElement draggable = driver.findElement(By.xpath("//*[@id='RadiusSlider']/a")); 
	for(int i=50;i<=300;i=i+50)
	{
		Thread.sleep(4000);
		new Actions(driver).dragAndDropBy(draggable, i,i).build().perform();  
		
	
	
	}
	}

}
